package monopoli.game;


public class CartaProbabilita extends Carta {
    
    private String testo;
    private int amount;

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public CartaProbabilita () {
    }
    
    public CartaProbabilita (int index) {
        String s = "GUADAGNI ";
        switch(index) {

            case 1: this.setTesto(s + (index * 1000) + " EURO!");
            case 2: this.setTesto(s + (index * 1000) + " EURO!");
            case 3: this.setTesto(s + (index * 1000) + " EURO!");
            case 4: this.setTesto(s + (index * 1000) + " EURO!");
            case 5: this.setTesto(s + (index * 1000) + " EURO!");
            case 6: this.setTesto(s + (index * 1000) + " EURO!");
            case 7: this.setTesto(s + (index * 1000) + " EURO!");
            case 8: this.setTesto(s + (index * 1000) + " EURO!");
            case 9: this.setTesto(s + (index * 1000) + " EURO!");
            case 10: this.setTesto(s + (index * 1000) + " EURO!");
            break;
            default: this.setTesto("Carta Probabilità non definita");
        }
        this.amount = index * 1000;
    }
    
    public void setTesto(String s) {
        testo=s;
    }

    public String getTesto() {
        return testo;
    }
}

